'use strict';

const Service = require('egg').Service;
class HomeService extends Service {

    /**
   * 
   */
  async getUser(id) {
    const { app } = this;
    const {[0]:user} = await app.knex.raw(`select * from pp_user where uid=${id}`);
    return user[0]
  }

    /**
   * 
   */
  async plan() {
    const { app } = this;
   
}
  /**
   * 
   */
async fullService() {
    const { app } = this;
   
}
   /**
   * 
   */
async project() {
    const { app } = this;
  }
  /**
   * 
   */
  async registered() {
    const { ctx } = this;
  } 

      /**
   * 
   */
  async article() {
    const { app } = this;
}
}

module.exports = HomeService;
